
    /**  
    * @Title: ZuulDemoApplication.java
    * @Package com.efast.cafe.gateway
    * @Description: TODO(用一句话描述该文件做什么)
    * @author Administrator
    * @date 2018年8月7日
    * @version V1.0  
    */
    
package com.efast.cafe.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import com.efast.cafe.gateway.filter.ErrorFilter;
//import com.taobao.pandora.boot.PandoraBootstrap;
/**
    * @ClassName: ZuulDemoApplication
    * @Description: TODO(这里用一句话描述这个类的作用)
    * @author Administrator
    * @date 2018年8月7日
    *
    */
@SpringBootApplication
@EnableAutoConfiguration
@ComponentScan(basePackages = {"com.efast.cafe.gateway.*"})
@EnableZuulProxy
public class CafeGatewayApplication  extends SpringBootServletInitializer{
	 public static void main(String[] args) {
		 	//PandoraBootstrap.run(args);
	        SpringApplication.run(CafeGatewayApplication.class, args);
	     //   PandoraBootstrap.markStartupAndWait();
	    }
	 
//	 @Bean
//	 public ErrorFilter errorFilter(){
//	     return new ErrorFilter();
//	 }
}
